package com.pingsky.apm.agent.core.service.metadata;

public class AgentInfo {

    private final String agentId;
    private final String applicationName;
    private final long startTime;
    private final int pid;
    private final String hostIp;
    private final String hostName;
    private final String jvmVersion;
    private final String agentVersion;

    public AgentInfo(String agentId, String applicationName, long startTime,
                     int pid, String hostIp, String hostName, String jvmVersion, String agentVersion) {
        this.agentId = agentId;
        this.applicationName = applicationName;
        this.startTime = startTime;
        this.pid = pid;
        this.hostIp = hostIp;
        this.hostName = hostName;
        this.jvmVersion = jvmVersion;
        this.agentVersion = agentVersion;
    }

    public String getAgentId() {
        return agentId;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public long getStartTime() {
        return startTime;
    }

    public int getPid() {
        return pid;
    }

    public String getHostIp() {
        return hostIp;
    }

    public String getHostName() {
        return hostName;
    }

    public String getJvmVersion() {
        return jvmVersion;
    }

    public String getAgentVersion() {
        return agentVersion;
    }

    @Override
    public String toString() {
        return "AgentInfo{" +
                "agentId='" + agentId + '\'' +
                ", applicationName='" + applicationName + '\'' +
                ", startTime=" + startTime +
                ", pid=" + pid +
                ", hostIp='" + hostIp + '\'' +
                ", hostName='" + hostName + '\'' +
                ", jvmVersion='" + jvmVersion + '\'' +
                ", agentVersion='" + agentVersion + '\'' +
                '}';
    }
}
